package com.tiny_wind.resource_manager.dao;

import com.tiny_wind.resource_manager.entity.NodeEntity;
import com.tiny_wind.resource_manager.entity.TokenEntity;
import com.tiny_wind.resource_manager.entity.UserEntity;
import org.apache.ibatis.annotations.Param;

public interface UserDao {
	
	UserEntity searchByAccount(@Param("account") String account);
	UserEntity searchByUserId(@Param("userId") Integer userId);
	UserEntity searchByToken(@Param("account") String token);
	Integer insert(UserEntity entity);
	void insertToken(TokenEntity entity);
}
